<template>
    <footer route class="by-footer">
            <van-tabbar v-model="active">
                <van-tabbar-item to="/home" icon="wap-home-o" >首页</van-tabbar-item>
                <van-tabbar-item to="/classify" icon="cluster-o">分类</van-tabbar-item>
                <van-tabbar-item to="/shopping-car" icon="shopping-cart-o">购物车</van-tabbar-item>
                <van-tabbar-item to="/mine" icon="manager-o" dot>我的</van-tabbar-item>
            </van-tabbar>
    </footer>
</template>

<script>
export default {
    props:['Factive'],
    data() {
        return {
            active: this.Factive?this.Factive:0,
        }
    },
}
</script>

<style lang="stylus" scoped>
        .by-footer
            width 100%
            height 1rem
</style>